﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Home.Domain.Entities
{
    /// <summary>
    /// 单个数据，根据名称唯一
    /// </summary>
    public class SingleData
    {
        public int Id { get; set; }
        /// <summary>
        /// 唯一名称
        /// </summary>
        [Required]
        [MaxLength(60)]
        public string SingleName { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [MaxLength(60)]
        public string Title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Body { get; set; }
    }
}
